package org.jeecg.modules.rental.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.rental.entity.RentalAccountCoupon;
import org.jeecg.modules.rental.entity.RentalOrder;
import org.jeecg.modules.rental.vo.AccountCouponVO;


import java.math.BigDecimal;
import java.util.List;

/**
 * @Description: 账户卡券
 * @Author: sean
 * @Date:   2024-08-19
 * @Version: V1.0
 */
public interface IRentalAccountCouponService extends IService<RentalAccountCoupon> {

    IPage<RentalAccountCoupon> selectJoinPage(Page page, RentalAccountCoupon rentalAccountCoupon);

    List<AccountCouponVO> effectiveCoupons(BigDecimal price);

    Boolean handleCoupon(RentalOrder rentalOrder);
}
